package com.coursehub.exercise.repository;

import com.coursehub.exercise.entity.FavoriteQuestionBank;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface FavoriteQuestionBankRepository extends JpaRepository<FavoriteQuestionBank, String> {
    List<FavoriteQuestionBank> findByUserId(String userId);
    List<FavoriteQuestionBank> findByUserIdAndCourseId(String userId, String courseId);
}


